package com.adingxiong.cft.design.builder;

/**
 * @ClassName Test
 * @Description TODO
 * @Author xiongchao
 * @Date 2021/1/7 16:51
 **/
public class Test {

    public static void main(String[] args) {
        MealBuilder mealBuilder = new MealBuilder();
        Meal meal = mealBuilder.perparNoVageTable();

        Meal meal1 = mealBuilder.perparVagetable();

        System.out.println("Veg  meal");
        meal.showItem();
        System.out.println("cost money:" + meal.getCost() +"\n ");

        System.out.println("drink meal");
        meal1.showItem();
        System.out.println("cost money :" + meal1.getCost());
    }
}
